import request from "@/netword/request";


const fun = {};


//保存公司信息
fun.saveOffice = async (office) => {
    const res = await request({
        url: "/a/core/office/save",
        method: "put",
        params: {
            id: office.id,
            officeLogo: office.officeLogo,
            officeWechat: office.officeWechat,
            officeName: office.officeName,
            officeField: office.officeField,
            officePersonnnel: office.officePersonnnel,
            officeLegal: office.officeLegal,
            officeMoney: office.officeMoney,
            officeAddress:office.officeAddress,
            officeIntroduce: office.officeIntroduce,
            officeIntroduceDetail: office.officeIntroduceDetail,
            officeTel: office.officeTel,
            creditNumber: office.creditNumber,
            chargePerson: office.chargePerson,
            chargePhone: office.chargePhone,
            chargeEmail: office.chargeEmail,
        }
    })
    return res.data;
}

//查询公司信息
fun.getOffice = async (id) => {
    const res = await request({
        url: "/a/core/office/get",
        method: "get",
        params: {
            id: id
        }
})
return res.data
}


export default fun;











